package com.cory.boot.config;

import net.dreamlu.mica.xss.config.MicaXssProperties;
import net.dreamlu.mica.xss.core.DefaultXssCleaner;
import org.springframework.context.annotation.Configuration;

/**
 * 自定义xss清理规则
 * @author xiongcong
 * @date 2022-04-14
 */
@Configuration
public class XssCleaner extends DefaultXssCleaner {
    
    @Override
    public String clean(String bodyHtml) {
        return super.clean(bodyHtml);
    }

    public XssCleaner(MicaXssProperties properties) {
        super(properties);
    }
    
}
